package com.rose.doorto.footbathdoor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rose.doorto.footbathdoor.pojo.UserRole;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户身份关联表Mapper
 * @Author 李庆超
 * @email 1481791489@qq.com
 * @Package：com.rose.doorto.footbathdoor.mapper
 * @Project：door-to-door
 * @name：UserRoleMapper
 * @date 2024/08/29 2024/8/29:14:26:
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 获取当前登录用户的角色信息
     * @param id
     * @return
     */
    int getRoleByUserId(Integer id);
}
